package com.goldcn.picture.dao;

import com.goldcn.picture.dto.QueryPicInfoDto;
import com.goldcn.picture.dto.QueryResultPicInfoDto;
import com.goldcn.picture.model.PicInfo;
import com.goldcn.picture.vo.PicInfoByUserVo;
import com.goldcn.picture.vo.PicTagVo;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface PicInfoMapper {
    int deleteByPrimaryKey(Long pictureid);

    int insert(PicInfo record);

    int insertSelective(PicInfo record);

    PicInfo selectByPrimaryKey(Long pictureid);

    int updateByPrimaryKeySelective(PicInfo record);

    int updateByPrimaryKeyWithBLOBs(PicInfo record);

    int updateByPrimaryKey(PicInfo record);

    List<QueryResultPicInfoDto> queryListPicInfo();


    List<QueryResultPicInfoDto> queryListPicInfos();

    List<QueryResultPicInfoDto> queryListPicInfo(QueryPicInfoDto queryPicInfoDto);

    List<QueryResultPicInfoDto> queryListPicInfoV2(QueryPicInfoDto queryPicInfoDto);

    List<QueryResultPicInfoDto> queryListPicInfoByUser(PicInfoByUserVo picInfoByUserVo);


    List<QueryResultPicInfoDto> queryListPicInfoByTag(PicTagVo picTagVov);

    int checkPictureNo(String pictureno);

}
